using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace CinemaLib
{
    /// <summary>
    /// Represents a User with Properties
    /// </summary>
    [DataContract]
    public class User
    {
        [DataMember]
        public int ID { get; set; }
        [DataMember]
        public string EMail { get; set; }
        [DataMember]
        public string FirstName { get; set; }
        [DataMember]
        public string LastName { get; set; }
        [DataMember]
        public string PassCode { get; set; }
        [DataMember]
        public string Address { get; set; }
        [DataMember]
        public string City { get; set; }
        [DataMember]
        public int ZipCode { get; set; }
        [DataMember]
        public int PhoneNumber { get; set; }

        public User(string _firstname, string _lastname, int _phonenumber, string _email = null, string _passcode = null, string _address = null, string _city = null, int _zipcode = 0)
        {
            FirstName = _firstname;
            LastName = _lastname;
            EMail = _email;
            PhoneNumber = _phonenumber;
            Address = _address;
            City = _city;
            ZipCode = _zipcode;
        }
    }
}
